<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<title>我的订单页面</title>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/css/cart.css" rel="stylesheet" type="text/css"/>

</head>
<body>
<jsp:include page="menu.jsp"/>
<div class="container cart">

		<div class="span24">
		
			<div class="step step1">
				<ul>
					<li  class="current"></li>
					<li  >我的所有订单</li>
				</ul>
			</div>
            <c:forEach items="${requestScope.allOrders.list}" var="order"><%--订单--%>
				<table>
						<tbody>
						订单编号：<span>${order.oid}</span>
						订单状态：
						<c:if test="${order.statu==1}"> <a href="/findOrderByOid?oid=${order.oid}" style="color: #ff6d6d;">未付款，去付款 </a></c:if>
						<c:if test="${order.statu==2}"> 已付款，未发货 </c:if>
						<c:if test="${order.statu==3}"> <a href="/toevaluation?oid=${order.oid}" style="color: #aacfff;"> 已收货，待评价 </a> </c:if>
						<c:if test="${order.statu==4}"> 交易完成 </c:if>
						<tr>
							<th>图片</th>
							<th>商品</th>
							<th>价格</th>
							<th>数量</th>
							<th>小计</th>
							<%--<th>操作</th>--%>
						</tr>
						<c:forEach items="${order.orderItemSet}" var="ois"><%--订单项--%>
							<tr>
								<td width="60">
									<%--<input type="hidden" name="id" value="22"/>--%>
									<img src="${ois.product.image}"/>
								</td>
								<td>
									<a target="_blank">${ois.product.pname}</a>
								</td>
								<td>
										${ois.product.shop_price}
								</td>
								<td class="quantity" width="60">
									<input type="text" name="count" value="${ois.count}" maxlength="4" onpaste="return false;"/>
									<div>
										<span class="increase">&nbsp;</span>
										<span class="decrease">&nbsp;</span>
									</div>
								</td>
								<td width="140">
									<span class="subtotal">￥${ois.subtotal}</span>
								</td>
								<%--<td>
									<a href="#移除此商品" class="delete">删除</a>
								</td>--%>
							</tr>
						</c:forEach>
					</tbody>
				</table>
					<dl id="giftItems" class="hidden" style="display: none;">
					</dl>
					<div class="total">
						<em id="promotion"></em>
						商品金额: <strong id="effectivePrice">￥${order.total}元</strong>
					</div>
			</c:forEach>
		</div>
    <div class="pagination">
        <span>第<input style="width: 20px" type="text" name="curPage" value="${requestScope.allOrders.page}" maxlength="3"/>/${requestScope.allOrders.totalPage}页</span>

        <%--<c:if test="${csid!=null}">--%>
            <c:if test="${requestScope.allOrders.page>1 && requestScope.allOrders.page<=requestScope.allOrders.totalPage}">
                <a href="/myOrders?page=1" class="firstPage">&nbsp;</a>
                <a href="/myOrders?page=${requestScope.allOrders.page-1}" class="previousPage">&nbsp;</a>
            </c:if>
            <c:if test="${requestScope.allOrders.page<requestScope.allOrders.totalPage && requestScope.allOrders.page>0}">
                <a href="/myOrders?page=${requestScope.allOrders.page+1}" class="nextPage">&nbsp;</a>
                <a class="lastPage" href="/myOrders?page=${requestScope.allOrders}">&nbsp;</a>
            </c:if>
        <%--</c:if>--%>
    </div>
		
	</div>
<div class="container footer">
	<div class="span24">
		<div class="footerAd">
					<img src="image\r___________renleipic_01/footer.jpg" alt="我们的优势" title="我们的优势" height="52" width="950">
</div>
</div>
	<div class="span24">
		<ul class="bottomNav">
					<li>
						<a href="#">关于我们</a>
						|
					</li>
					<li>
						<a href="#">联系我们</a>
						|
					</li>
					<li>
						<a href="#">诚聘英才</a>
						|
					</li>
					<li>
						<a href="#">法律声明</a>
						|
					</li>
					<li>
						<a>友情链接</a>
						|
					</li>
					<li>
						<a target="_blank">支付方式</a>
						|
					</li>
					<li>
						<a target="_blank">配送方式</a>
						|
					</li>
					<li>
						<a >SHOP++官网</a>
						|
					</li>
					<li>
						<a>SHOP++论坛</a>
						
					</li>
		</ul>
	</div>
	<div class="span24">
		<div class="copyright">Copyright © 2005-2015 网上商城 版权所有</div>
	</div>
</div>
</body>
</html>